<?php /* Smarty version 2.6.13, created on 2011-03-18 16:13:39
         compiled from manage_editpage.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 't', 'manage_editpage.tpl', 14, false),)), $this); ?>
<script src="includes/js/tiny_mce/tiny_mce.js" type="text/javascript"></script>
<script src="includes/js/editor.js" type="text/javascript"></script>
<div class="wrap">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
	<div id='ajaxResponse' class="ajaxResponse"></div>
	<h2><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit Page<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h2>
	<form name="editpage" id="editpage" method="post"  enctype="multipart/form-data" action="?mod=<?php echo $_GET['mod']; ?>
&sub1=page">
		<input type="hidden" id="act" name="act" value="editpage"/>
		<input type="hidden" id="id" name="id" value="<?php echo $_GET['id']; ?>
"/>
		<input type="hidden" id="type" name="type" value="">
		<table width="100%">
		<tr valign="top">
			<td width="60%">
				<p>
				<label for="page_name"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Title:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label><br />
				<input name="page_name" id="page_name" type="text" value="<?php echo $this->_tpl_vars['THEPAGE']->page_name; ?>
" size="90px" />
				</p>
                <p>
                <label for="product_image"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Gallery image:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label><br />
					<input type="file" size="50" name="page_img" id="page_img" value="" AUTOCOMPLETE='OFF' readonly="readonly" />
                    <img src="../upload/thumb/<?php echo $this->_tpl_vars['THEPAGE']->page_img; ?>
" />
            	</p>
            
                <p>
                	<label for="page_content"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Page Content (show in home):<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label><br />
                    <div>
                        <textarea id="short_desciption" name="short_desciption" rows="15" cols="5" style="width: 100%"><?php echo $this->_tpl_vars['THEPAGE']->short_desciption; ?>
</textarea>
                    </div>
                </p>
                <p>
				<label for="page_content"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Page Content:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label><br />
				<div>
					<textarea id="page_content" name="page_content" rows="15" cols="10" style="width: 100%"><?php echo $this->_tpl_vars['THEPAGE']->page_content; ?>
</textarea>
				</div>
                </p>
				<p class="submit" align = "right">
					<input type="submit" name="button" value="<?php $this->_tag_stack[] = array('t', array('escape' => false)); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Save And Continue Editing &raquo;<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>" 
					onclick="$('type').value='ajax';"/>
					<input type="submit" name="submit" value="<?php $this->_tag_stack[] = array('t', array('escape' => false)); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Update Page &raquo;<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>" 
					onclick="$('type').value='';"/>
				</p>
			</td>
			<td class="tblColRight" width="40%">
								<div class="box">
					<h3><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Page Status<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h3>
					<div class="box-content">
						<label for="page_status_publish" class="selectit">
							<input id="page_status_publish" name="page_status" type="radio" value="publish"  
							<?php if ($this->_tpl_vars['THEPAGE']->page_status == 'publish'): ?> checked="checked" <?php endif; ?>/> 
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Published<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
						<label for="page_status_draft" class="selectit">
							<input id="page_status_draft" name="page_status" type="radio" 
							value="draft" <?php if ($this->_tpl_vars['THEPAGE']->page_status == 'draft'): ?> checked="checked" <?php endif; ?>/> 
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Draft<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
						<label for="page_status_private" class="selectit">
							<input id="page_status_private" name="page_status" type="radio" 
							value="private" <?php if ($this->_tpl_vars['THEPAGE']->page_status == 'private'): ?> checked="checked" <?php endif; ?>/> 
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Private<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
					</div>
				</div>
				<div class="box">
					<h3><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Page Parent<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h3>
					<div class="box-content">
						<select name='page_parent' id='page_parent'>
		  					<option value='0'><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>None<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></option>
		  					<?php $_from = $this->_tpl_vars['PAGES']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['page'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['page']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['page']['iteration']++;
?>
							<option id='page_parent-<?php echo $this->_tpl_vars['item']->page_id; ?>
' value='<?php echo $this->_tpl_vars['item']->page_id; ?>
'
							<?php if ($this->_tpl_vars['THEPAGE']->page_parent == $this->_tpl_vars['item']->page_id): ?> selected <?php endif; ?>>
								<?php echo $this->_tpl_vars['item']->page_name; ?>

							</option>
							<?php endforeach; endif; unset($_from); ?>
						</select>
					</div> 
				</div>
				<div class="box">
					<h3><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Page Author<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h3>
					<div class="box-content">
						<select name='page_author' id='page_author'>
		  							  					<?php $_from = $this->_tpl_vars['USERS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['user'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['user']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['user']['iteration']++;
?>
							<option id='page_author-<?php echo $this->_tpl_vars['item']->ID; ?>
' value='<?php echo $this->_tpl_vars['item']->ID; ?>
'
							<?php if ($this->_tpl_vars['THEPAGE']->page_author == $this->_tpl_vars['item']->ID): ?> selected <?php endif; ?>>
								<?php echo $this->_tpl_vars['item']->user_login; ?>

							</option>
							<?php endforeach; endif; unset($_from); ?>
						</select>
					</div> 
				</div>
				<div class="box">
					<h3><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Page Header Position<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h3>
					<div class="box-content">
						<label for="hpNone" class="selectit">
							<input id="hpNone" name="page_type" type="radio" value=""
							 <?php if ($this->_tpl_vars['THEPAGE']->page_type == '0'): ?> checked="checked" <?php endif; ?>/>
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>None<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
						<label for="hpHome" class="selectit">
							<input id="hpHome" name="page_type" type="radio" value="1"
							<?php if ($this->_tpl_vars['THEPAGE']->page_type == '1'): ?> checked="checked" <?php endif; ?>/>
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Home<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?> 
						</label>
						<label for="hpAbout" class="selectit">
							<input id="hpAbout" name="page_type" type="radio" value="2"
							<?php if ($this->_tpl_vars['THEPAGE']->page_type == '2'): ?> checked="checked" <?php endif; ?>/>
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>About Us<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?> 
						</label>
						<label for="hpSupport" class="selectit">
							<input id="hpSupport" name="page_type" type="radio" value="3"
							<?php if ($this->_tpl_vars['THEPAGE']->page_type == '3'): ?> checked="checked" <?php endif; ?>/> 
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Support<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
						<label for="hpRestaurant" class="selectit">
							<input id="hpRestaurant" name="page_type" type="radio" value="4"
							<?php if ($this->_tpl_vars['THEPAGE']->page_type == '4'): ?> checked="checked" <?php endif; ?>/> 
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Restaurant<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
                        <label for="hpPromotions" class="selectit">
							<input id="hpPromotions" name="page_type" type="radio" value="5"
							<?php if ($this->_tpl_vars['THEPAGE']->page_type == '5'): ?> checked="checked" <?php endif; ?>/> 
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Promotions<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
                         <label for="hpContact" class="selectit">
							<input id="hpContact" name="page_type" type="radio" value="6"
							<?php if ($this->_tpl_vars['THEPAGE']->page_type == '6'): ?> checked="checked" <?php endif; ?>/> 
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Contact<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
					</div> 
				</div>
				<div class="box">
					<h3><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Other<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h3>
					<div class="box-content">
						<label for="quicklink" class="selectit">
							<input id="quicklink" name="quicklink" type="checkbox" value="1"
							<?php if ($this->_tpl_vars['THEPAGE']->quick_link == 1): ?> checked="checked" <?php endif; ?>/> 
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Quick link<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
					</div> 
				</div>
                <div class="box">
					<h3><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Assign to Category<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h3>
					<div class="box-content">
						<select name='cat_parent' id='cat_parent'>
		  					<option value='0'><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>None<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></option>
		  					<?php $_from = $this->_tpl_vars['CATS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['page'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['page']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['page']['iteration']++;
?>
							<option id='<?php echo $this->_tpl_vars['item']->cat_ID; ?>
' value='<?php echo $this->_tpl_vars['item']->cat_ID; ?>
'
							<?php if ($this->_tpl_vars['THEPAGE']->category_id == $this->_tpl_vars['item']->cat_ID): ?> selected <?php endif; ?>>
								<?php echo $this->_tpl_vars['item']->cat_name; ?>

							</option>
							<?php endforeach; endif; unset($_from); ?>
						</select>
					</div> 
				</div>
                <div class="box">
					<h3><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>View in introduction pane<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h3>
					<div class="box-content">
						<label for="hpNone" class="selectit">
							<input id="intro_pane" name="intro_pane" type="radio" value="0"
							 <?php if ($this->_tpl_vars['THEPAGE']->page_type == '0'): ?> checked="checked" <?php endif; ?>/>
							<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>None<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
						</label>
                        <?php $_from = $this->_tpl_vars['INTROPANE']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['intro'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['intro']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['intro']['iteration']++;
?>
						<label class="selectit">
							<input id="intro_pane" name="intro_pane" type="radio" value="<?php echo $this->_tpl_vars['item']->number; ?>
"
							<?php if ($_GET['id'] == $this->_tpl_vars['item']->page_id): ?> checked="checked" <?php endif; ?>/>
							<?php echo $this->_tpl_vars['item']->number; ?>
 
						</label>
                        <?php endforeach; endif; unset($_from); ?>
					</div> 
				</div>
			</td>
		</tr>
		</table>
	</form>
	</td>
	<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>